package com.tinycloud.miracll.product.service.impl;

import java.util.List;

import com.tinycloud.common.datasource.annotation.Slave1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tinycloud.miracll.product.mapper.ErpQCLinePackageViewMapper;
import com.tinycloud.miracll.product.domain.ErpQCLinePackageView;
import com.tinycloud.miracll.product.service.IErpQCLinePackageViewService;

/**
 * 品管号产线包装视图Service业务层处理
 * 
 * @author tiny
 * @date 2022-06-15
 */
@Service
@Slave1
public class ErpQCLinePackageViewServiceImpl implements IErpQCLinePackageViewService {
    @Autowired
    private ErpQCLinePackageViewMapper erpQCLinePackageViewMapper;

    /**
     * 查询品管号产线包装视图
     * 
     * @param qcNum 品管号产线包装视图主键
     * @return 品管号产线包装视图
     */
    @Override
    public ErpQCLinePackageView selectErpQCLinePackageViewByQcNum(String qcNum) {
        return erpQCLinePackageViewMapper.selectErpQCLinePackageViewByQcNum(qcNum);
    }

    /**
     * 查询品管号产线包装视图列表
     * 
     * @param erpQCLinePackageView 品管号产线包装视图
     * @return 品管号产线包装视图
     */
    @Override
    public List<ErpQCLinePackageView> selectErpQCLinePackageViewList(ErpQCLinePackageView erpQCLinePackageView) {
        return erpQCLinePackageViewMapper.selectErpQCLinePackageViewList(erpQCLinePackageView);
    }

    /**
     * 新增品管号产线包装视图
     * 
     * @param erpQCLinePackageView 品管号产线包装视图
     * @return 结果
     */
    @Override
    public int insertErpQCLinePackageView(ErpQCLinePackageView erpQCLinePackageView) {
        return erpQCLinePackageViewMapper.insertErpQCLinePackageView(erpQCLinePackageView);
    }

    /**
     * 修改品管号产线包装视图
     * 
     * @param erpQCLinePackageView 品管号产线包装视图
     * @return 结果
     */
    @Override
    public int updateErpQCLinePackageView(ErpQCLinePackageView erpQCLinePackageView) {
        return erpQCLinePackageViewMapper.updateErpQCLinePackageView(erpQCLinePackageView);
    }

    /**
     * 批量删除品管号产线包装视图
     * 
     * @param qcNums 需要删除的品管号产线包装视图主键
     * @return 结果
     */
    @Override
    public int deleteErpQCLinePackageViewByQcNums(String[] qcNums) {
        return erpQCLinePackageViewMapper.deleteErpQCLinePackageViewByQcNums(qcNums);
    }

    /**
     * 删除品管号产线包装视图信息
     * 
     * @param qcNum 品管号产线包装视图主键
     * @return 结果
     */
    @Override
    public int deleteErpQCLinePackageViewByQcNum(String qcNum) {
        return erpQCLinePackageViewMapper.deleteErpQCLinePackageViewByQcNum(qcNum);
    }
}
